package com.kesh.ltank.game;


import com.android.framework.Screen;
import com.android.framework.impl.AndroidGame;
import com.kesh.ltank.game.GlobalVars.GameMusic;
import com.kesh.ltank.screens.SplashScreen;


public class InitGame extends AndroidGame {

	boolean firstTimeCreate = true;

	@Override
	public Screen getInitScreen() {
		if (firstTimeCreate) {
			GameMusic.Theme1.loadMusic(this.getAudio());
			GameMusic.Theme1.play();
			firstTimeCreate = false;
		}

		return new SplashScreen(this);
	}
	
	@Override
	public void onBackPressed() {
		getCurrentScreen().backButton();
	}
	
	@Override
	public void onResume() {
		super.onResume();
		GameMusic.Theme1.play();

	}

	@Override
	public void onPause() {
		super.onPause();
		GameMusic.Theme1.pause();
	}
	
}